Skip to content

fix: Remove references to live env (and also stage env)#424

Merged
kirre-bylund merged 2 commits intodevfrom
fix/remove-env-switch
Mar 6, 2026
Merged

fix: Remove references to live env (and also stage env)#424
kirre-bylund merged 2 commits intodevfrom
fix/remove-env-switch

Conversation

@kirre-bylund
Copy link
Contributor

Resolves issue: https://github.com/lootlocker/index/issues/1174

Since we no longer have multiple environments we remove all references to live. And while we're at it, retire the "targeting stage" ifdef since stage is no more.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes now-obsolete “stage/live environment” targeting options from the Unity SDK configuration/editor tooling, aligning the SDK with a single-environment backend setup.

Changes:

  • Removes LOOTLOCKER_TARGET_STAGE_ENV URL override handling from LootLockerConfig.
  • Removes persisted “Environment” EditorPrefs key usage and related helper methods from LootLockerEditorData.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

File Description
Runtime/Game/Resources/LootLockerConfig.cs Drops stage environment URL override preprocessor branch, leaving only local override support.
Runtime/Editor/LootLockerEditorData.cs Removes editor “Environment” preference key and stage/live selection helpers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

EditorPrefs.DeleteKey(selectedGameName);
EditorPrefs.DeleteKey(environment);
EditorPrefs.DeleteKey(firstTimeWelcome);
EditorPrefs.DeleteKey(newSession);
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClearLootLockerPrefs() no longer deletes the legacy EditorPrefs key that older versions wrote (prefix + "Environment"). Consider still deleting that key (e.g. via an inline string) so users upgrading from older versions can fully reset LootLocker editor state from the Tools menu.

Suggested change
EditorPrefs.DeleteKey(newSession);
EditorPrefs.DeleteKey(newSession);
// Delete legacy environment key used by older versions so resets fully clear LootLocker editor state
EditorPrefs.DeleteKey(PlayerSettings.productGUID.ToString() + ".LootLocker.Environment");

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@JohannesLoot JohannesLoot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment on the hardcoded color, but other than that merge away!

@kirre-bylund kirre-bylund force-pushed the fix/remove-env-switch branch from 4066cb7 to 134f839 Compare March 6, 2026 09:38
@kirre-bylund kirre-bylund merged commit d70f484 into dev Mar 6, 2026
@kirre-bylund kirre-bylund deleted the fix/remove-env-switch branch March 6, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants